/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const router = {
    path: '/sales',
    component: Layout,
    name: 'sales',
    alwaysShow: true,
    meta: {
        title: '销售管理',
        icon: 'sales'
    },
    children: [
        {
            path: '/sales/cashier',
            component: () => import('@/views/sales/cashier/cashierList'),
            name: 'cashierList',
            meta: {
                title: '收银单'
            },
        }, {
            path: '/sales/cashier/salesGoods',
            component: () => import('@/views/sales/cashier/salesGoods'),
            name: 'salesGoods',
            meta: {
                title: '收银单明细'
            },
            hidden: true
        },

        {
            path: '/sales/prescription',
            component: () => import('@/views/sales/prescription/prescriptionList'),
            name: 'prescriptionList',
            meta: {
                title: '处方单'
            },
        }, {
            path: '/sales/prescription/detail',
            component: () => import('@/views/sales/prescription/detail'),
            name: 'prescriptionDetail',
            meta: {
                title: '处方单明细'
            },
            hidden: true
        },
        {
            path: '/sales/buyMedicine',
            component: () => import('@/views/sales/buyMedicine/buyMedicinelsit'),
            name: 'buyMedicinelsit',
            meta: {
                title: '购药单'
            },
        }, {
            path: '/sales/buyMedicine/detail',
            component: () => import('@/views/sales/buyMedicine/detail'),
            name: 'buyMedicineDetail',
            meta: {
                title: '购药单明细'
            },
            hidden: true
        },
        {
            path: '/sales/salesDetail',
            component: () => import('@/views/sales/salesDetail/salesDetail'),
            name: 'salesDetail',
            meta: {
                title: '销售明细'
            },

        },
        {
            path: '/sales/adjustment',
            component: () => import('@/views/sales/adjustment/adjustmentlist'),
            name: 'adjustmentlist',
            meta: {
                title: '售价调整单'
            },
        }, {
            path: '/sales/adjustment/detail',
            component: () => import('@/views/sales/adjustment/detail'),
            name: 'adjustdetail',
            meta: {
                title: '售价调整单明细'
            },
            hidden: true
        },
        {
            path: '/sales/priceDetail',
            component: () => import('@/views/sales/priceDetail/priceDetail'),
            name: 'priceDetail',
            meta: {
                title: '售价变动明细'
            },
        },



    ]
}

export default router
